﻿namespace SlamCms.Sample.Web.Core.Configuration
{ 
	public class ConfigurationManager : SlamCms.Configuration.ConfigurationManager
	{
		private static SampleEnvironmentConfiguration _environmentConfiguration;
		private static SampleSolutionConfiguration _solutionConfiguration;

		public new static SampleSolutionConfiguration Solution
		{
			get
			{
				if (_solutionConfiguration == null)
				{
					_solutionConfiguration = new SampleSolutionConfiguration();
				}

				return _solutionConfiguration;
			}
		}

		public new static SampleEnvironmentConfiguration Environment
		{
			get
			{
				if (_environmentConfiguration == null)
				{
					_environmentConfiguration = new SampleEnvironmentConfiguration();
				}

				return _environmentConfiguration;
			}
		}
	}
}
